package com.suxin.call_service_world_feign.controller;

import com.suxin.call_service_world_feign.remoteService.WorldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WorldController {


    @Autowired
    private WorldService worldService;

    @GetMapping(value = "world")
    public String world(@RequestParam(value = "name") String name) {

        return worldService.worldFromWorldService(name);
    }
}
